<?php
    include "admin_order.php";

$id=$_REQUEST['id'];
$enddate=$_REQUEST['enddate'];
$tracking=$_REQUEST['tracking'];
$trackingnumber=$_REQUEST['trackingnumber'];
// var_dump($id);

mysqli_select_db($conn,"shopping");

   $sql = "update orders set `condition` = '待收货',enddate='$enddate',tracking='$tracking',trackingnumber='$trackingnumber' where id='$id'";  //SQL模板

   $result=mysqli_query($conn,$sql);

    if (!$result){
        echo '发货时间更新失败！';
    }else{
        echo '发货时间更新成功！';
    }
    
    mysqli_close($conn);
?>
